//
//  NCChatViewController.h
//  AFNetworking
//
//  Created by LINAICAI on 2018/4/8.
//

#import "LBBaseViewController.h"
#import "NCChatDataSource.h"
#import "NCChatInputView.h"
#import "UIImage+WBImage.h"
@interface NCChatViewController : LBBaseViewController
@property (nonatomic , strong , readonly)NSString *userId;
@property (nonatomic , strong)UITableView *chatTableView;
@property (nonatomic , strong)NCChatInputView *chatInputView;
@property (nonatomic , strong)id<NCChatDataSource> dataSource;
- (void)selectPictureWithType:(UIImagePickerControllerSourceType)type;

- (instancetype)initWithUserId:(NSString *)userId NS_DESIGNATED_INITIALIZER;
- (void)scrollToBottom:(BOOL)animated;
- (void)finishSend;

///该方法提供给子类重写自己的消息样式或者新增样式
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
///子类如果要实现发送消息,需要重写以下方法
- (void)chatInputViewSendText:(NSString *)text;
- (void)receiveKeyBoardSendClick:(NSNotification *)notification;
- (void)messageSendFailNotification:(NSNotification *)notification;
- (void)audioCompleteFinishNotification:(NSNotification *)notification;
@end
